//
//  LYChooseMenuCell.m
//  artist
//
//  Created by Jay_Apple on 16/4/8.
//  Copyright © 2016年 viviyoo. All rights reserved.
//

#import "LYChooseMenuCell.h"
#import "LYSubDataModel.h"

@interface LYChooseMenuCell ()

@property (weak, nonatomic) IBOutlet UILabel *title;

@end

@implementation LYChooseMenuCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(LYSubDataModel *)model{

    _model = model;
    
    self.title.text = _model.title;
    
    if (_model.selected) {
        self.backgroundColor = [UIColor whiteColor];
        self.title.textColor = [UIColor colorWithHexString:@"#00abee" alpha:1];
    }else{
    
        self.backgroundColor = [UIColor colorWithHexString:@"#F8F8F8" alpha:1];
        self.title.textColor = [UIColor colorWithHexString:@"#333333" alpha:1];
        
    }


}


@end
